<?php
/**
 * Created by PhpStorm.
 * User: zhangxilu
 * Date: 2017/12/23
 * Time: 下午10:03
 */

namespace common\logic;


use common\models\BaseBuildingTypeModel;
use yii\db\ActiveQuery;

class BuildingTypeLogic extends Logic
{

    /**
     * @return ActiveQuery
     */
    protected function _getActiveQuery()
    {
        return BaseBuildingTypeModel::find();
    }

    /**
     * @return array|BaseBuildingTypeModel[]
     */
    public function getAll(){
        return $this->_all();
    }
}